import sys
sys.path.append("..")
from common.utils import *

if __name__ == '__main__':
        # { 0xFF, 0x12 }, 0x0F13E4
    print(hex2str([0x02, 0xF3, 0xE4])) # list
    print(hex2str(b"\x02\xF3\xE4", with_0x=False))    # bytes  
    print(hex2str([0x02, 0xF3, 0xE4], with_0x=False))
    print(hex2str([0x02, 0xF3, 0xE4], with_space=False, with_0x=False))
    print("-------------------")
    print(bytes.fromhex("AFE3B4"))
    print(str2hex("0xFA 0xE3 0x2"))
    print(str2hex("FA E3 2"))
    print(str2hex("FA E3 02"))
    print(str2hex("FAE302"))
    
